import service from '@/utils/request'

export const getAnnouncements = (params) => {
    return service({
        url: '/announcement/page',
        method: 'get',
        params
    })
}

export const delAnnouncements = (params) => {
    return service({
        url: `/announcement/delete/${params}`,
        method: 'delete'
    })
}
export const saveAnnouncements = (data) => {
    return service({
        url: `/announcement/save`,
        method: 'post',
        data
    })
}
export const editAnnouncements = (data) => {
    return service({
        url: `/announcement/edit`,
        method: 'put',
        data
    })
}
